<template>
  <div class="main_box" style="padding:10px;">
    <div class="detail_wrap">
      <div class="tit">
        <h2>基础信息</h2>
        <el-button size="small" plain type="success" icon="fa fa-mail-forward" @click="returnList" > 返 回</el-button>
      </div>
      <div class="con">
        <ul>
          <li>
            <label class="label">样本名称:</label>
            <span>{{specimenData.insSampleName}}</span>
          </li>
          <li>
            <label class="label">样本编号:</label>
            <span>{{specimenData.insSampleCode}}</span>
          </li>
         
          <li>
            <label class="label">医检机构:</label>
            <span>{{specimenData.institutionName}}</span>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
import medicalApi from "@/api/medicalspecimen/index";
  export default {
  data() {
    return {
      specimenData: ""
    };
  },
  methods: {
    getData() {
      medicalApi.getDetail({
        insSampleId: this.$route.query.id
      }).then(res => {
        this.specimenData = res.data;
      });
    },
    returnList() {
      this.$store.dispatch('delView', this.$route);
      this.$router.go(-1)
    }
  },
  mounted() {
    this.getData();
  }
};
</script>
<style lang="scss" src="@/assets/css/views/Detail.scss" scope>
</style>
